<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>tab栏切换动画</title>
    <link rel="stylesheet" href="./reset.css" />
    <link rel="stylesheet" href="./index.css" />
  </head>
  <body>
    <div class="tab-area">
      <div class="tab-left" onclick="clickTabLeftButton(event)">
        <div class="tab-left-text">左边的tab</div>
      </div>
      <div class="tab-right" onclick="clickTabRightButton(event)">
        <div class="tab-right-text">右边的tab</div>
      </div>
      <image
        class="tab-left-image"
        src="./image/tab-left-selected.png"
        mode="scaleToFill"
      />
      <image
        class="tab-right-image"
        src="./image/tab-right-selected.png"
        mode="scaleToFill"
      />
    </div>
  </body>
  <script src="index.js"></script>
</html>
